Skip to content

Conversation

@saitunc
Copy link
Contributor

@saitunc saitunc commented Nov 21, 2025

Signer module integration to Settlement module

This PR closes issues #302 and #301.

Changes

  • MinaSigner interface and InMemoryMinaSigner module is implemented. This module is used as a key managament system, where private keys are held here and signings are done from here. This enables settlement transactions to be signed inside InMemoryMinaSigner, without exposing private keys to any other part of the memory.
  • Besides contract keys, any Token Bridge key and their owner/admin keys are kept in the signer and retrieved by using a Map. This enables users to pass the regarding public key only - signer will find the private key and execute signings.
  • Settlement contract used to take settlementKey as input and assert that public key matches with the relevant contract. To keep private key safe, now a signature created by settlement contract key.

Commit Details

  • Implemented Signer interface and InMemoryMinaSigner : da8204c
  • Updated SettlementUtils.ts: b58840d
  • Updated bridging module: c72ce51
  • Updated settlementTestFn: 91b42b7
  • Added signature creation with a specified key on signer config e24c1e2

@saitunc saitunc requested a review from rpanic November 28, 2025 09:10
@saitunc saitunc marked this pull request as ready for review November 28, 2025 09:11
@saitunc saitunc force-pushed the feat/signer-integration branch from 84a1bab to fddf408 Compare December 5, 2025 12:49
@saitunc saitunc requested a review from rpanic December 5, 2025 13:47
@saitunc saitunc requested a review from rpanic December 8, 2025 17:51
@saitunc saitunc merged commit 1448c8e into develop Dec 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants